
#ifndef BLOCK_H
#define BLOCK_H


#include <QObject>
#include <QRectF>

class Block : public QObject, public QRectF
{
    Q_OBJECT

    //template<class T> T myparent;
public:
    explicit Block(const QPointF &topLeft, const QSizeF &size, QObject *parent = nullptr);
    explicit Block(const QPointF &topLeft, const QPointF &bottomRight, QObject *parent = nullptr);
    explicit Block(qreal x, qreal y, qreal width, qreal height, QObject *parent = nullptr);
    explicit Block(const QRect &rectangle, QObject *parent = nullptr);
    void change();

signals:
    void re_changeloc();
};

#endif // BLOCK_H
